package com.wish.g01.business.controller;

import com.wish.g01.base.dto.RoomInfoDTO;
import com.wish.g01.base.service.ITbRoomInfoService;
import com.wish.g01.base.vo.RoomInfoVO;
import com.wish.g01.common.core.web.controller.BaseController;
import com.wish.g01.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Classname FTaiContaoller
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/6/4 19:36
 * @Created by wupenghao
 */
@RestController
@RequestMapping("/fatai")
public class FTaiContaoller extends BaseController {

    @Autowired
    private ITbRoomInfoService roomInfoService;


    @PostMapping("/getFangTai")
    public TableDataInfo getFangTai(@RequestBody  RoomInfoDTO roomInfoDTO){
        startPage();
        List<RoomInfoVO> list =roomInfoService.getFangTai(roomInfoDTO);
        return getDataTable(list);
    }
}
